/*
** put_in_list.c for 42sh in /home/demesy_j/svn/quarante-deuxsh/trunk
** 
** Made by julien demesy
** Login   <demesy_j@epitech.net>
** 
** Started on  Mon Mar 12 11:25:39 2012 julien demesy
** Last update Mon Mar 12 11:39:58 2012 julien demesy
*/

#include	<string.h>
#include	"list.h"

t_list		*create_env_list(char **env)
{
  int		i;
  t_list	*list;

  list = create_list();
  i = 0;
  while (env[i])
    add_end(list, strdup(env[i++]));
  return (list);
}
